<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>


   
    <div></div>


    <!-- 引入外部 JS 文件 -->
    <script src="./js/index.js"></script>
    <script>
        // 内部 JS 代码
    </script>
</body>

</html>